// 渲染帖子内容
export const renderContent = (content) => {
    if (!content) {
        return '';
    }
    // todo: xss检测
    const pattern = /\n/g;
    console.log(content.replace(pattern, "<br/>"))
    return content.replace(pattern, "<br/>");
};
